<%@ page import="com.my.Customer" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    //模拟Servlet中的操作
    List<Customer> customerList = new ArrayList<Customer>();
    customerList.add(new Customer(1, "AA", 12));
    customerList.add(new Customer(2, "BB", 12));
    customerList.add(new Customer(3, "CC", 13));
    customerList.add(new Customer(4, "DD", 15));
    customerList.add(new Customer(5, "EE", 16));

    request.setAttribute("customerList", customerList);
%>
<jsp:forward page="testtag.jsp"/>


</body>
</html>
